<?php
/**
 * @package au2  
 * @author Jaroslaw Mezyk <j.mezyk@netcoffee.pl>
 * @copyright Jaroslaw Mezyk 2008
 */

require_once dirname(__FILE__) . '/au2/template_au2.class.php';

/**
 * Files that will not be processed  
 */
$saFilesToIgnore = array('au2.php', strtolower(__FILE__));

/**
 * @todo on linux path are case sensitive  
 *
 */

foreach($argv as $sFile){
	if(!in_array(strtolower($sFile), $saFilesToIgnore)){

		try{
			echo "Processing {$sFile}\n";
			$oSzablon = new template_au2($sFile);

		}catch(Exception $e){

			echo "exception: " . $e -> getMessage();

		}
	}
}


?>
